/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: Arial, sans-serif;
}

/* Fondo principal */
.bg, .custom-nav-container {
  background-color: #000000e6 !important;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  z-index: 1000;
}

/* Logo */
.brand-logo {
  height: 50px;
  width: auto;
}

/* Contenedor del logo (desktop) */
.brand-container {
  position: absolute;
  left: 40px; /* Ajusta a tu gusto */
  top: 50%;
  transform: translateY(-50%);
}

/* Texto de marca (mobile) */
.navbar-brand.d-lg-none {
  font-family: "Lexend Giga", sans-serif;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

/* Links normales */
a.nav-link {
  color: #fff !important;
  font-weight: 600;
  transition: all 0.2s;
}

a.nav-link:hover {
  color: #dbdbdb !important;
}

a.nav-link.active {
  color: #dbdbdb !important;
}

/* Eliminar fondo azul y sombra en focus/active */
a.nav-link:focus,
a.nav-link:active,
.nav-link.show {
  color: #dbdbdb !important;
  background-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Dropdown (si lo tuvieras en el futuro) */
.custom-dropdown {
  background-color: #111 !important;
  border: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.custom-dropdown .dropdown-item {
  color: #fff;
}

.custom-dropdown .dropdown-item:hover {
  background-color: #222;
  color: #dbdbdb;
}

/* Toggler (hamburguesa) */
.navbar-toggler {
  border: none;
  background-color: transparent;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* Ajuste altura navbar */
.custom-nav-container {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

/* --- RESPONSIVE --- */
@media (max-width: 991.98px) {
  /* Logo desktop desaparece */
  .brand-container {
    display: none;
  }

  /* Menu links centrados y apilados */
  .navbar-collapse {
    text-align: center;
  }

  .nav {
    flex-direction: column;
    gap: 5px;
  }
}

@media (min-width: 992px) {
  /* Menu links centrados desktop */
  .navbar-collapse {
    justify-content: center !important;
  }
}

/*end styles nav*/



/* Hero Section */
.hero {
  background: 
      linear-gradient(rgba(5,7,12,0.75), rgba(5,7,12,0.75)), 
      url('../imgs/camion.jpg') center center/cover no-repeat;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 0 20px;
  /*margin-top: 80px; Para compensar la altura de la navbar */
}

.hero-content h1 {
  font-size: 3rem;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.hero-buttons .btn {
  padding: 10px 20px;
  border: none;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 5px;
  margin: 0 10px;
}

.btn.primary {
  background-color: #ffdd24;
  color: #000;
  font-weight: bold;
}


.btn.primary:hover{
  font-size: 20px;
  transition: all 0.4s;
  background-color: #ffd700;
  color: #302f2f;
}

.btn.secondary {
  background-color: #5a5a5a;
}


  /*styles for usados y nuevos*/

.sec-1{
  /*background-color: #1e73be; */
  margin-top: 30px;
  margin-left: 20px;
  margin-right: 20px;
  padding: 30px;
}

.sec-1-cont {
  display: flex; /* Utiliza flexbox */
  align-items: center; /* Alinea verticalmente el ícono y el texto */
  justify-content: center; /* Centra el contenido horizontalmente */
}

.sec-1-cont h2 {
  margin-left: 10px; /* Espacio entre el ícono y el texto */
}


/*estilo para cards*/

.custom-card {
   /* Ajusta este valor según el tamaño deseado */
  margin: 0 auto;   /* Centrar la tarjeta */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
  border-radius: 8px; 
  transition: box-shadow 0.3s ease; 
}

.custom-card:hover{
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}


.card-body {
  display: flex;
  justify-content: center; 
  align-items: center;    
  flex-direction: column;
}

/*styles for cards 0km*/

.custom-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  overflow: hidden;
}

.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.custom-card .card-img-top {
  height: 180px;
  object-fit: cover;
  width: 100%;
  border-bottom: 1px solid #eee;
}

.custom-card-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.custom-card-body .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.custom-card-body .card-text {
  font-size: 0.95rem;
  color: #666;
}

.custom-card {
  min-height: 420px; /* altura mínima para uniformar visualmente */
}

.custom-card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


/*card badges*/

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #28a745; /* Verde por defecto (0KM) */
  color: white;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 10;
}

.card-badge.used {
  background-color: #ffc107; /* Amarillo para Usadas */
}

.card-img-container {
  position: relative;
}

/*modal card styles*/
 .modal-content {
    background-color: #0000004f;
    border-radius: 0;
  }

  .carousel-inner img {
    max-height: 90vh;
    object-fit: contain;
    margin: auto;
    border-radius: 0px;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    filter: invert(1);
  }

  .btn-close {
    z-index: 1056;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 10%;
  }

  /*newsletter style*/
  #emailInput::placeholder {
    color: #fff !important;
    opacity: 0.75;
  }

  /*styles for financiamiento y video*/
.last-sec{
  background-color: #fcfcfc;
  padding: 30px;
  margin: 20px;
}

.last-sec h4,p{
  text-align: center;
}

.last-sec p{
  margin-top: 30px;
  font-size: 18px;
  /* font-weight: 300; */
}

.final-sec{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.left{
  width: 50%;
  text-align: left;
  padding-right: 20px;
}

.right{
  width: 50%;
  display: flex;
  justify-content: center;
}

.right iframe{
  border-radius: 10px;
}

.last-sec h4 {
  text-align: center;
  font-size: 24px;
}

/* styles for bitren seccion */

.nueva-unidad h4 {
  line-height: 1.3;
  text-align: center;
}

.titulo-bitren{
  text-align: center;
  color: #404040;
}

.video-thumbnail {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.btn-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  font-size: 40px;
  transition: all 0.3s ease;
}

.btn-play:hover {
  background-color: rgba(255, 0, 0, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
}



/*wpp styles*/
.whatsapp-float {
  position: fixed;
  width: 50px;  /* Tamaño del icono */
  height: 50px;
  bottom: 20px;  /* Distancia del borde inferior */
  right: 20px;   /* Distancia del borde derecho */
  border-radius: 50px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  z-index: 100;  /* Asegura que esté por encima de otros elementos */
  transition: 0.2s ease;
}

.whatsapp-float .whatsapp-icon {
  width: 100%;  /* Hace que la imagen ocupe toda la "bolita" */
  height: 100%;
  object-fit: cover;
}


.whatsapp-float:hover {
  transform: scale(1.1);
}

/*form styles*/

.separador-linea {
  height: 8px;
    background: #3e393942;
    box-shadow: 3px 5px 7px rgba(0, 0, 0, 0.05);
}

/* Estilo general del modal */
.modal-content {
  background: #ffffffef;
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: none;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
  padding: 30px;
}

/* Contenedor del formulario */
.form-sec {
  margin-bottom: 0;
  padding: 0;
}

/* Título */
.form-sec h1 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 25px;
}

/* Formulario */
form {
  width: 100%;
  padding: 0;
}

/* Inputs, selects y textarea modernos */
input, select, textarea {
  width: 100%;
  padding: 12px 15px;
  margin: 12px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  transition: border-color 0.3s;
  font-size: 0.95rem;
}

input:focus, select:focus, textarea:focus {
  border-color: #3971b8;
  outline: none;
}

/* Labels */
label {
  font-weight: 500;
  color: #333;
  margin-top: 10px;
  display: block;
  font-size: 0.9rem;
}

/* Botón principal */
.btn-form {
  background-color: #feef4c;
  color: #2a323f;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 15px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-form:hover {
  background-color: #ffd700;
  transform: scale(1.02);
}

/* Mensajes de error */
#errorMessages {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 576px) {
  .modal-content {
    padding: 20px;
  }

  .form-sec h1 {
    font-size: 1.3rem;
  }
}


/*footer styles*/

.footer {
  background-color: #1f2225;
  padding: 20px;
  text-align: center;
  position: relative;
}

.footer::before {
  content: '';
  display: block;
  height: 4px;
  background-color: #000000;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-content .logo img {
  max-height: 50px;
}

.footer-info {
  text-align: center;
  flex: 1;
  line-height: 1.6;
}

.footer-info p {
  margin: 2px 0;
  font-size: 11px;
  font-weight: 400;
  color: #c0c0c0;
  letter-spacing: 0.3px;
}

.footer-info .marca {
  font-weight: 700;
  color: #ffffff;
  font-family: 'raleway';
}

.social-icons a {
  margin: 0 10px;
  color: #f0f0f0;
  font-size: 24px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #c8c8c8;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}



/* ============================ */


/* RESPONSIVE STYLES UNDER THIS LINE */

/* Responsive for hero section */
@media (max-width: 1200px) {
.hero-content h1 {
    font-size: 2.5rem; /* Reduce el tamaño en pantallas medianas */
}

.hero-content p {
    font-size: 1.1rem; /* Ajuste ligero al texto */
}
}

@media (max-width: 768px) {
.hero {
    height: 90vh; /* Permite que el contenido dicte la altura */
    padding: 40px 20px; /* Agrega más relleno en pantallas pequeñas */
}

.hero-content h1 {
    font-size: 2rem; /* Tamaño menor del texto principal */
}

.hero-content p {
    font-size: 1rem; /* Tamaño más pequeño del párrafo */
}

.hero-buttons .btn {
    padding: 8px 15px; /* Botones más compactos */
    margin: 10px 0; /* Espaciado vertical entre botones */
    font-size: 0.9rem;
}
}

@media (max-width: 480px) {
.hero-content h1 {
    font-size: 1.8rem; /* Aún más pequeño en pantallas muy pequeñas */
}

.hero-content p {
    font-size: 0.9rem;
}

.hero-buttons .btn {
    padding: 6px 10px;
    font-size: 0.8rem;
}
}

/* ============================ */

/* Responsive for financiamiento sec */

@media (max-width: 768px) {
.final-sec {
    flex-direction: column; /* Coloca los elementos en columna en pantallas pequeñas */
}

.left, .right {
    width: 100%; /* Ancho completo para ambos elementos */
    text-align: center; /* Centra el contenido en pantallas pequeñas */
    padding: 0; /* Elimina el padding lateral para mejor alineación */
}

.right iframe {
    width: 100%; /* Ajusta el iframe al 100% del contenedor */
}
}

/* ============================ */

/* Responsive for whatsapp float*/
@media (max-width: 768px) {
.whatsapp-float {
    width: 40px;  
    height: 40px;
    bottom: 15px; 
    right: 15px;  
}
}

@media (max-width: 480px) {
.whatsapp-float {
    width: 35px;  
    height: 35px;
    bottom: 10px; 
    right: 10px;  
}
}

/* ============================ */

/* Responsive for footer */

/*Footer*/
@media (max-width: 576px) {
  .footer-content {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

  .social-icons {
      margin-top: 10px;
      gap: 15px; /* Espaciado entre íconos */
  }
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
  .sec-1-cont, .custom-card, .last-sec, .review-sec {
    transition: transform 1s ease-in-out; /* Cambia la duración o tipo de animación */
    transform: translateY(30px); /* Ajusta el desplazamiento de los elementos */
  }
}